/* Layout */
const Layout = resolve => require(['@/views/layout/Layout'], resolve);

const ProductRouterMap = {
  id: 14,
  path: '/product',
  component: Layout,
  redirect: '/product/productList',
  name: '产品管理',
  meta: {title: '产品管理', icon: 'product', power: 'product'},
  alwaysShow: true,
  showMode: 'DEFAULT',
  children: [
    {
      id: 15,
      path: 'productList',
      name: '产品列表',
      component: resolve => require(['@/views/product/productList'], resolve),
      meta: {title: '产品列表', icon: 'project', power: 'product.productList'},
      children: [
        {
          path: 'modify',
          name: '产品信息修改',
          component: resolve => require(['@/views/product/productList/modify.vue'], resolve),
          meta: {title: '产品信息修改', power: 'product.productList.modify'},
          hidden: true
        }, {
          path: 'details',
          name: '产品信息',
          component: resolve => require(['@/views/product/productList/details.vue'], resolve),
          meta: {title: '产品信息', power: 'product.productList.details'},
          hidden: true
        }
      ]
    }, {
      id: 134,
      path: 'productType',
      name: '产品类型',
      component: resolve => require(['@/views/product/productType/index.vue'], resolve),
      meta: {title: '产品类型', icon: 'caselist', power: 'product.productType'}
    }, {
      id: 0,
      path: 'caselist',
      name: '案例列表',
      component: resolve => require(['@/views/product/caseList/caseList.vue'], resolve),
      meta: {title: '案例列表', icon: 'caselist', power: 'product.caselist'}
    }, {
      id: 0,
      path: 'recycle',
      name: '产品回收站',
      component: resolve => require(['@/views/product/recycle.vue'], resolve),
      meta: {title: '产品回收站', icon: 'recycle', power: 'product.recycle'}
    }
  ]
}

export default ProductRouterMap;
